package net.esj.basic.utils;

import java.util.Random;

public class MathRandomUtils {
	
	public static String getRandom(int len ,int n){
		Random random = new java.util.Random();//定义随机类
		String code = "";
		for(int i=0;i<len;i++){
			int result=random.nextInt(n);
			code += result;
		}
		return code;
	}
}
